<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>API: node   node.js  (YUI Library)</title>

	<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" />
	<link rel="stylesheet" type="text/css" href="assets/api.css" />

    <script type="text/javascript" src="assets/api-js"></script>
    <script type="text/javascript" src="assets/ac-js"></script>
</head>

<body id="yahoo-com">

<div id="doc3" class="yui-t2">
	<div id="hd">
        <h1><a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a></h1>
        <h3>node&nbsp; <span class="subtitle">3.0.0b1</span></h3>
        <a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> 
            &gt; <a href="./module_node.html" title="node">node</a>
                
                 &gt; node.js (source view) 
        <form onsubmit="return false">
            <div id="propertysearch">
                Search: <input autocomplete="off" id="searchinput" />
                <div id="searchresults">
                    &nbsp;
                </div>
            </div>
        </form>
	</div>

	<div id="bd">
		<div id="yui-main">
			<div class="yui-b">
            <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form">
                <fieldset>
                    <legend>Filters</legend>
                <span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span>
                <span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span>
                <span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span>
                </fieldset>
            </form>

                    <div id="srcout">
                        <style>
                            #doc3 .classopts { display:none; }
                        </style>
<div class="highlight" ><pre><span class="c">/**</span>
<span class="c"> * The Node Utility provides a DOM-like interface for interacting with DOM nodes.</span>
<span class="c"> * @module node</span>
<span class="c"> * @submodule node-base</span>
<span class="c"> */</span>    

<span class="c">/**</span>
<span class="c"> * The Node class provides a wrapper for manipulating DOM Nodes.</span>
<span class="c"> * Node properties can be accessed via the set/get methods.</span>
<span class="c"> * Use Y.get() to retrieve Node instances.</span>
<span class="c"> *</span>
<span class="c"> * &lt;strong&gt;NOTE:&lt;/strong&gt; Node properties are accessed using</span>
<span class="c"> * the &lt;code&gt;set&lt;/code&gt; and &lt;code&gt;get&lt;/code&gt; methods.</span>
<span class="c"> *</span>
<span class="c"> * @class Node</span>
<span class="c"> * @constructor</span>
<span class="c"> * @for Node</span>
<span class="c"> */</span>

<span class="c">// &quot;globals&quot;</span>
<span class="c"></span><span class="k">var</span> <span class="nx">g_nodes</span> <span class="o">=</span> <span class="o">{},</span>
    <span class="nx">g_nodelists</span> <span class="o">=</span> <span class="o">{},</span>
    <span class="nx">g_restrict</span> <span class="o">=</span> <span class="o">{},</span>
    <span class="nx">g_slice</span> <span class="o">=</span> <span class="nb">Array</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">slice</span><span class="o">,</span>

    <span class="nx">DOT</span> <span class="o">=</span> <span class="s1">&#39;.&#39;</span><span class="o">,</span>
    <span class="nx">NODE_NAME</span> <span class="o">=</span> <span class="s1">&#39;nodeName&#39;</span><span class="o">,</span>
    <span class="nx">NODE_TYPE</span> <span class="o">=</span> <span class="s1">&#39;nodeType&#39;</span><span class="o">,</span>
    <span class="nx">OWNER_DOCUMENT</span> <span class="o">=</span> <span class="s1">&#39;ownerDocument&#39;</span><span class="o">,</span>
    <span class="nx">TAG_NAME</span> <span class="o">=</span> <span class="s1">&#39;tagName&#39;</span><span class="o">,</span>
    <span class="nx">UID</span> <span class="o">=</span> <span class="s1">&#39;_yuid&#39;</span><span class="o">,</span>

    <span class="nx">SuperConstr</span> <span class="o">=</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Base</span><span class="o">,</span>
    <span class="nx">SuperConstrProto</span> <span class="o">=</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Base</span><span class="o">.</span><span class="nx">prototype</span><span class="o">,</span>

    <span class="nx">Node</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">node</span><span class="o">,</span> <span class="nx">restricted</span><span class="o">)</span> <span class="o">{</span>
        <span class="k">var</span> <span class="nx">config</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
        <span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]</span> <span class="o">=</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">stamp</span><span class="o">(</span><span class="nx">node</span><span class="o">);</span>
        <span class="k">if</span> <span class="o">(!</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">])</span> <span class="o">{</span> <span class="c">// stamp failed; likely IE non-HTMLElement</span>
<span class="c"></span>            <span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]</span> <span class="o">=</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">guid</span><span class="o">();</span> 
        <span class="o">}</span>

        <span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]]</span> <span class="o">=</span> <span class="nx">node</span><span class="o">;</span>
        <span class="nx">Node</span><span class="o">.</span><span class="nx">_instances</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]]</span> <span class="o">=</span> <span class="k">this</span><span class="o">;</span>

        <span class="k">if</span> <span class="o">(</span><span class="nx">restricted</span><span class="o">)</span> <span class="o">{</span>
            <span class="nx">config</span> <span class="o">=</span> <span class="o">{</span>
                <span class="nx">restricted</span><span class="o">:</span> <span class="nx">restricted</span>
            <span class="o">};</span>
            <span class="nx">g_restrict</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]]</span> <span class="o">=</span> <span class="kc">true</span><span class="o">;</span> 
        <span class="o">}</span>

        <span class="k">this</span><span class="o">.</span><span class="nx">_lazyAttrInit</span> <span class="o">=</span> <span class="kc">true</span><span class="o">;</span>
        <span class="k">this</span><span class="o">.</span><span class="nx">_silentInit</span> <span class="o">=</span> <span class="kc">true</span><span class="o">;</span>
        <span class="nx">SuperConstr</span><span class="o">.</span><span class="nx">call</span><span class="o">(</span><span class="k">this</span><span class="o">,</span> <span class="nx">config</span><span class="o">);</span>
    <span class="o">},</span>

    <span class="c">// used with previous/next/ancestor tests</span>
<span class="c"></span>    <span class="nx">_wrapFn</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">fn</span><span class="o">)</span> <span class="o">{</span>
        <span class="k">var</span> <span class="nx">ret</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
        <span class="k">if</span> <span class="o">(</span><span class="nx">fn</span><span class="o">)</span> <span class="o">{</span>
            <span class="nx">ret</span> <span class="o">=</span> <span class="o">(</span><span class="k">typeof</span> <span class="nx">fn</span> <span class="o">===</span> <span class="s1">&#39;string&#39;</span><span class="o">)</span> <span class="o">?</span>
            <span class="k">function</span><span class="o">(</span><span class="nx">n</span><span class="o">)</span> <span class="o">{</span>
                <span class="k">return</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Selector</span><span class="o">.</span><span class="nx">test</span><span class="o">(</span><span class="nx">n</span><span class="o">,</span> <span class="nx">fn</span><span class="o">);</span>
            <span class="o">}</span> <span class="o">:</span> 
            <span class="k">function</span><span class="o">(</span><span class="nx">n</span><span class="o">)</span> <span class="o">{</span>
                <span class="k">return</span> <span class="nx">fn</span><span class="o">(</span><span class="nx">Node</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="nx">n</span><span class="o">));</span>
            <span class="o">};</span>
        <span class="o">}</span>

        <span class="k">return</span> <span class="nx">ret</span><span class="o">;</span>
    <span class="o">};</span>
<span class="c">// end &quot;globals&quot;</span>
<span class="c"></span>
<span class="nx">Node</span><span class="o">.</span><span class="nx">NAME</span> <span class="o">=</span> <span class="s1">&#39;Node&#39;</span><span class="o">;</span>

<span class="nx">Node</span><span class="o">.</span><span class="nx">DOM_EVENTS</span> <span class="o">=</span> <span class="o">{</span>
    <span class="nx">abort</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">blur</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">change</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">click</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">close</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">command</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">contextmenu</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">drag</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">dragstart</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">dragenter</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">dragover</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">dragleave</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">dragend</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">drop</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">dblclick</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">error</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">focus</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">keydown</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">keypress</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">keyup</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">load</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">mousedown</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">mousemove</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">mouseout</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span> 
    <span class="nx">mouseover</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span> 
    <span class="nx">mouseup</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">mousemultiwheel</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">mousewheel</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">submit</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">mouseenter</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">mouseleave</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">scroll</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">reset</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">resize</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">select</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">textInput</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
    <span class="nx">unload</span><span class="o">:</span> <span class="kc">true</span>
<span class="o">};</span>

<span class="c">// Add custom event adaptors to this list.  This will make it so</span>
<span class="c">// that delegate, key, available, contentready, etc all will</span>
<span class="c">// be available through Node.on</span>
<span class="c"></span><span class="nx">Y</span><span class="o">.</span><span class="nx">mix</span><span class="o">(</span><span class="nx">Node</span><span class="o">.</span><span class="nx">DOM_EVENTS</span><span class="o">,</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Env</span><span class="o">.</span><span class="nx">evt</span><span class="o">.</span><span class="nx">plugins</span><span class="o">);</span>

<span class="nx">Node</span><span class="o">.</span><span class="nx">_instances</span> <span class="o">=</span> <span class="o">{};</span>

<span class="c">/**</span>
<span class="c"> * Registers plugins to be instantiated at the class level (plugins </span>
<span class="c"> * which should be plugged into every instance of Node by default).</span>
<span class="c"> *</span>
<span class="c"> * @method Node.plug</span>
<span class="c"> * @static</span>
<span class="c"> *</span>
<span class="c"> * @param {Function | Array} plugin Either the plugin class, an array of plugin classes or an array of objects (with fn and cfg properties defined)</span>
<span class="c"> * @param {Object} config (Optional) If plugin is the plugin class, the configuration for the plugin</span>
<span class="c"> */</span>
<span class="nx">Node</span><span class="o">.</span><span class="nx">plug</span> <span class="o">=</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
    <span class="k">var</span> <span class="nx">args</span> <span class="o">=</span> <span class="nx">g_slice</span><span class="o">.</span><span class="nx">call</span><span class="o">(</span><span class="nx">arguments</span><span class="o">,</span> <span class="m">0</span><span class="o">);</span>
    <span class="nx">args</span><span class="o">.</span><span class="nx">unshift</span><span class="o">(</span><span class="nx">Node</span><span class="o">);</span>
    <span class="nx">Y</span><span class="o">.</span><span class="nx">Base</span><span class="o">.</span><span class="nx">plug</span><span class="o">.</span><span class="nx">apply</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">Base</span><span class="o">,</span> <span class="nx">args</span><span class="o">);</span>
    <span class="k">return</span> <span class="nx">Node</span><span class="o">;</span>
<span class="o">};</span>

<span class="c">/**</span>
<span class="c"> * Unregisters any class level plugins which have been registered by the Node</span>
<span class="c"> *</span>
<span class="c"> * @method Node.unplug</span>
<span class="c"> * @static</span>
<span class="c"> *</span>
<span class="c"> * @param {Function | Array} plugin The plugin class, or an array of plugin classes</span>
<span class="c"> */</span>
<span class="nx">Node</span><span class="o">.</span><span class="nx">unplug</span> <span class="o">=</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
    <span class="k">var</span> <span class="nx">args</span> <span class="o">=</span> <span class="nx">g_slice</span><span class="o">.</span><span class="nx">call</span><span class="o">(</span><span class="nx">arguments</span><span class="o">,</span> <span class="m">0</span><span class="o">);</span>
    <span class="nx">args</span><span class="o">.</span><span class="nx">unshift</span><span class="o">(</span><span class="nx">Node</span><span class="o">);</span>
    <span class="nx">Y</span><span class="o">.</span><span class="nx">Base</span><span class="o">.</span><span class="nx">unplug</span><span class="o">.</span><span class="nx">apply</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">Base</span><span class="o">,</span> <span class="nx">args</span><span class="o">);</span>
    <span class="k">return</span> <span class="nx">Node</span><span class="o">;</span>
<span class="o">};</span>

<span class="c">/**</span>
<span class="c"> * Retrieves the DOM node bound to a Node instance</span>
<span class="c"> * @method Node.getDOMNode</span>
<span class="c"> * @static</span>
<span class="c"> *</span>
<span class="c"> * @param {Y.Node || HTMLNode} node The Node instance or an HTMLNode</span>
<span class="c"> * @return {HTMLNode} The DOM node bound to the Node instance.  If a DOM node is passed</span>
<span class="c"> * as the node argument, it is simply returned.</span>
<span class="c"> */</span>
<span class="nx">Node</span><span class="o">.</span><span class="nx">getDOMNode</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">node</span><span class="o">)</span> <span class="o">{</span>
    <span class="k">if</span> <span class="o">(</span><span class="nx">node</span><span class="o">)</span> <span class="o">{</span>
        <span class="k">if</span> <span class="o">(</span><span class="nx">node</span> <span class="k">instanceof</span> <span class="nx">Node</span><span class="o">)</span> <span class="o">{</span>
            <span class="nx">node</span> <span class="o">=</span> <span class="nx">g_nodes</span><span class="o">[</span><span class="nx">node</span><span class="o">[</span><span class="nx">UID</span><span class="o">]];</span>
        <span class="o">}</span> <span class="k">else</span> <span class="k">if</span> <span class="o">(!</span><span class="nx">node</span><span class="o">[</span><span class="nx">NODE_NAME</span><span class="o">]</span> <span class="o">||</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">DOM</span><span class="o">.</span><span class="nx">isWindow</span><span class="o">(</span><span class="nx">node</span><span class="o">))</span> <span class="o">{</span> <span class="c">// must already be a DOMNode </span>
<span class="c"></span>            <span class="nx">node</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
        <span class="o">}</span>
    <span class="o">}</span>
    <span class="k">return</span> <span class="nx">node</span> <span class="o">||</span> <span class="kc">null</span><span class="o">;</span>
<span class="o">};</span>
 
<span class="nx">Node</span><span class="o">.</span><span class="nx">scrubVal</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">val</span><span class="o">,</span> <span class="nx">node</span><span class="o">,</span> <span class="nx">depth</span><span class="o">)</span> <span class="o">{</span>
    <span class="k">if</span> <span class="o">(</span><span class="nx">node</span> <span class="o">&amp;&amp;</span> <span class="nx">val</span><span class="o">)</span> <span class="o">{</span> <span class="c">// only truthy values are risky</span>
<span class="c"></span>        <span class="k">if</span> <span class="o">(</span><span class="k">typeof</span> <span class="nx">val</span> <span class="o">===</span> <span class="s1">&#39;object&#39;</span> <span class="o">||</span> <span class="k">typeof</span> <span class="nx">val</span> <span class="o">===</span> <span class="s1">&#39;function&#39;</span><span class="o">)</span> <span class="o">{</span> <span class="c">// safari nodeList === function</span>
<span class="c"></span>            <span class="k">if</span> <span class="o">(</span><span class="nx">NODE_TYPE</span> <span class="k">in</span> <span class="nx">val</span> <span class="o">||</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">DOM</span><span class="o">.</span><span class="nx">isWindow</span><span class="o">(</span><span class="nx">val</span><span class="o">))</span> <span class="o">{</span><span class="c">// node || window</span>
<span class="c"></span>                <span class="k">if</span> <span class="o">(</span><span class="nx">g_restrict</span><span class="o">[</span><span class="nx">node</span><span class="o">[</span><span class="nx">UID</span><span class="o">]]</span> <span class="o">&amp;&amp;</span> <span class="o">!</span><span class="nx">node</span><span class="o">.</span><span class="nx">contains</span><span class="o">(</span><span class="nx">val</span><span class="o">))</span> <span class="o">{</span>
                    <span class="nx">val</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span> <span class="c">// not allowed to go outside of root node</span>
<span class="c"></span>                <span class="o">}</span> <span class="k">else</span> <span class="o">{</span>
                    <span class="nx">val</span> <span class="o">=</span> <span class="nx">Node</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="nx">val</span><span class="o">);</span>
                <span class="o">}</span>
            <span class="o">}</span> <span class="k">else</span> <span class="k">if</span> <span class="o">(</span><span class="nx">val</span><span class="o">.</span><span class="nx">item</span> <span class="o">||</span> <span class="c">// dom collection or Node instance // TODO: check each node for restrict? block ancestor?</span>
<span class="c"></span>                    <span class="o">(</span><span class="nx">val</span><span class="o">[</span><span class="m">0</span><span class="o">]</span> <span class="o">&amp;&amp;</span> <span class="nx">val</span><span class="o">[</span><span class="m">0</span><span class="o">][</span><span class="nx">NODE_TYPE</span><span class="o">]))</span> <span class="o">{</span> <span class="c">// array of DOM Nodes</span>
<span class="c"></span>                <span class="nx">val</span> <span class="o">=</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">all</span><span class="o">(</span><span class="nx">val</span><span class="o">);</span>
            <span class="o">}</span> <span class="k">else</span> <span class="o">{</span>
                <span class="nx">depth</span> <span class="o">=</span> <span class="o">(</span><span class="nx">depth</span> <span class="o">===</span> <span class="kc">undefined</span><span class="o">)</span> <span class="o">?</span> <span class="m">4</span> <span class="o">:</span> <span class="nx">depth</span><span class="o">;</span>
                <span class="k">if</span> <span class="o">(</span><span class="nx">depth</span> <span class="o">&gt;</span> <span class="m">0</span><span class="o">)</span> <span class="o">{</span>
                    <span class="k">for</span> <span class="o">(</span><span class="k">var</span> <span class="nx">i</span> <span class="k">in</span> <span class="nx">val</span><span class="o">)</span> <span class="o">{</span> <span class="c">// TODO: test this and pull hasOwnProperty check if safe?</span>
<span class="c"></span>                        <span class="k">if</span> <span class="o">(</span><span class="nx">val</span><span class="o">.</span><span class="nx">hasOwnProperty</span> <span class="o">&amp;&amp;</span> <span class="nx">val</span><span class="o">.</span><span class="nx">hasOwnProperty</span><span class="o">(</span><span class="nx">i</span><span class="o">))</span> <span class="o">{</span>
                            <span class="nx">val</span><span class="o">[</span><span class="nx">i</span><span class="o">]</span> <span class="o">=</span> <span class="nx">Node</span><span class="o">.</span><span class="nx">scrubVal</span><span class="o">(</span><span class="nx">val</span><span class="o">[</span><span class="nx">i</span><span class="o">],</span> <span class="nx">node</span><span class="o">,</span> <span class="o">--</span><span class="nx">depth</span><span class="o">);</span>
                        <span class="o">}</span>
                    <span class="o">}</span>
                <span class="o">}</span>
            <span class="o">}</span>
        <span class="o">}</span>
    <span class="o">}</span> <span class="k">else</span> <span class="k">if</span> <span class="o">(</span><span class="nx">val</span> <span class="o">===</span> <span class="kc">undefined</span><span class="o">)</span> <span class="o">{</span>
        <span class="nx">val</span> <span class="o">=</span> <span class="nx">node</span><span class="o">;</span> <span class="c">// for chaining</span>
<span class="c"></span>    <span class="o">}</span>

    <span class="k">return</span> <span class="nx">val</span><span class="o">;</span>
<span class="o">};</span>

<span class="nx">Node</span><span class="o">.</span><span class="nx">addMethod</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">name</span><span class="o">,</span> <span class="nx">fn</span><span class="o">,</span> <span class="nx">context</span><span class="o">)</span> <span class="o">{</span>
    <span class="k">if</span> <span class="o">(</span><span class="nx">name</span> <span class="o">&amp;&amp;</span> <span class="nx">fn</span> <span class="o">&amp;&amp;</span> <span class="k">typeof</span> <span class="nx">fn</span> <span class="o">===</span> <span class="s1">&#39;function&#39;</span><span class="o">)</span> <span class="o">{</span>
        <span class="nx">Node</span><span class="o">.</span><span class="nx">prototype</span><span class="o">[</span><span class="nx">name</span><span class="o">]</span> <span class="o">=</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="nx">context</span> <span class="o">=</span> <span class="nx">context</span> <span class="o">||</span> <span class="k">this</span><span class="o">;</span>
            <span class="k">var</span> <span class="nx">args</span> <span class="o">=</span> <span class="nx">g_slice</span><span class="o">.</span><span class="nx">call</span><span class="o">(</span><span class="nx">arguments</span><span class="o">),</span>
                <span class="nx">ret</span><span class="o">;</span>

            <span class="k">if</span> <span class="o">(</span><span class="nx">args</span><span class="o">[</span><span class="m">0</span><span class="o">]</span> <span class="o">&amp;&amp;</span> <span class="nx">args</span><span class="o">[</span><span class="m">0</span><span class="o">]</span> <span class="k">instanceof</span> <span class="nx">Node</span><span class="o">)</span> <span class="o">{</span>
                <span class="nx">args</span><span class="o">[</span><span class="m">0</span><span class="o">]</span> <span class="o">=</span> <span class="nx">Node</span><span class="o">.</span><span class="nx">getDOMNode</span><span class="o">(</span><span class="nx">args</span><span class="o">[</span><span class="m">0</span><span class="o">]);</span>
            <span class="o">}</span>

            <span class="k">if</span> <span class="o">(</span><span class="nx">args</span><span class="o">[</span><span class="m">1</span><span class="o">]</span> <span class="o">&amp;&amp;</span> <span class="nx">args</span><span class="o">[</span><span class="m">1</span><span class="o">]</span> <span class="k">instanceof</span> <span class="nx">Node</span><span class="o">)</span> <span class="o">{</span>
                <span class="nx">args</span><span class="o">[</span><span class="m">1</span><span class="o">]</span> <span class="o">=</span> <span class="nx">Node</span><span class="o">.</span><span class="nx">getDOMNode</span><span class="o">(</span><span class="nx">args</span><span class="o">[</span><span class="m">1</span><span class="o">]);</span>
            <span class="o">}</span>
            <span class="nx">args</span><span class="o">.</span><span class="nx">unshift</span><span class="o">(</span><span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]]);</span>
            <span class="nx">ret</span> <span class="o">=</span> <span class="nx">Node</span><span class="o">.</span><span class="nx">scrubVal</span><span class="o">(</span><span class="nx">fn</span><span class="o">.</span><span class="nx">apply</span><span class="o">(</span><span class="nx">context</span><span class="o">,</span> <span class="nx">args</span><span class="o">),</span> <span class="k">this</span><span class="o">);</span>
            <span class="k">return</span> <span class="nx">ret</span><span class="o">;</span>
        <span class="o">};</span>
    <span class="o">}</span> <span class="k">else</span> <span class="o">{</span>
        <span class="nx">Y</span><span class="o">.</span><span class="nx">log</span><span class="o">(</span><span class="s1">&#39;unable to add method: &#39;</span> <span class="o">+</span> <span class="nx">name</span><span class="o">,</span> <span class="s1">&#39;warn&#39;</span><span class="o">,</span> <span class="s1">&#39;Node&#39;</span><span class="o">);</span>
    <span class="o">}</span>
<span class="o">};</span>

<span class="nx">Node</span><span class="o">.</span><span class="nx">importMethod</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">host</span><span class="o">,</span> <span class="nx">name</span><span class="o">,</span> <span class="nx">altName</span><span class="o">)</span> <span class="o">{</span>
    <span class="k">if</span> <span class="o">(</span><span class="k">typeof</span> <span class="nx">name</span> <span class="o">===</span> <span class="s1">&#39;string&#39;</span><span class="o">)</span> <span class="o">{</span>
        <span class="nx">altName</span> <span class="o">=</span> <span class="nx">altName</span> <span class="o">||</span> <span class="nx">name</span><span class="o">;</span>
        <span class="nx">Node</span><span class="o">.</span><span class="nx">addMethod</span><span class="o">(</span><span class="nx">altName</span><span class="o">,</span> <span class="nx">host</span><span class="o">[</span><span class="nx">name</span><span class="o">],</span> <span class="nx">host</span><span class="o">);</span>
    <span class="o">}</span> <span class="k">else</span> <span class="o">{</span>
        <span class="nx">Y</span><span class="o">.</span><span class="nx">each</span><span class="o">(</span><span class="nx">name</span><span class="o">,</span> <span class="k">function</span><span class="o">(</span><span class="nx">n</span><span class="o">)</span> <span class="o">{</span>
            <span class="nx">Node</span><span class="o">.</span><span class="nx">importMethod</span><span class="o">(</span><span class="nx">host</span><span class="o">,</span> <span class="nx">n</span><span class="o">);</span>
        <span class="o">});</span>
    <span class="o">}</span>
<span class="o">};</span>

<span class="c">/**</span>
<span class="c"> * Returns a single Node instance bound to the node or the</span>
<span class="c"> * first element matching the given selector.</span>
<span class="c"> * @method Y.get</span>
<span class="c"> * @static</span>
<span class="c"> * @param {String | HTMLElement} node a node or Selector </span>
<span class="c"> * @param {Y.Node || HTMLElement} doc an optional document to scan. Defaults to Y.config.doc. </span>
<span class="c"> * @param {Boolean} restrict Whether or not the Node instance should be restricted to accessing</span>
<span class="c"> * its subtree only.</span>
<span class="c"> */</span>
<span class="nx">Node</span><span class="o">.</span><span class="nx">get</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">node</span><span class="o">,</span> <span class="nx">doc</span><span class="o">,</span> <span class="nx">restrict</span><span class="o">)</span> <span class="o">{</span>
    <span class="k">var</span> <span class="nx">instance</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>

    <span class="k">if</span> <span class="o">(</span><span class="k">typeof</span> <span class="nx">node</span> <span class="o">===</span> <span class="s1">&#39;string&#39;</span><span class="o">)</span> <span class="o">{</span>
        <span class="k">if</span> <span class="o">(</span><span class="nx">node</span><span class="o">.</span><span class="nx">indexOf</span><span class="o">(</span><span class="s1">&#39;doc&#39;</span><span class="o">)</span> <span class="o">===</span> <span class="m">0</span><span class="o">)</span> <span class="o">{</span> <span class="c">// doc OR document</span>
<span class="c"></span>            <span class="nx">node</span> <span class="o">=</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">config</span><span class="o">.</span><span class="nx">doc</span><span class="o">;</span>
        <span class="o">}</span> <span class="k">else</span> <span class="k">if</span> <span class="o">(</span><span class="nx">node</span><span class="o">.</span><span class="nx">indexOf</span><span class="o">(</span><span class="s1">&#39;win&#39;</span><span class="o">)</span> <span class="o">===</span> <span class="m">0</span><span class="o">)</span> <span class="o">{</span> <span class="c">// doc OR document</span>
<span class="c"></span>            <span class="nx">node</span> <span class="o">=</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">config</span><span class="o">.</span><span class="nx">win</span><span class="o">;</span>
        <span class="o">}</span> <span class="k">else</span> <span class="o">{</span>
            <span class="nx">node</span> <span class="o">=</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Selector</span><span class="o">.</span><span class="nx">query</span><span class="o">(</span><span class="nx">node</span><span class="o">,</span> <span class="nx">doc</span><span class="o">,</span> <span class="kc">true</span><span class="o">);</span>
        <span class="o">}</span>
    <span class="o">}</span>

    <span class="k">if</span> <span class="o">(</span><span class="nx">node</span><span class="o">)</span> <span class="o">{</span>
        <span class="nx">instance</span> <span class="o">=</span> <span class="nx">Node</span><span class="o">.</span><span class="nx">_instances</span><span class="o">[</span><span class="nx">node</span><span class="o">[</span><span class="nx">UID</span><span class="o">]];</span> <span class="c">// reuse exising instances</span>
<span class="c"></span>        <span class="k">if</span> <span class="o">(!</span><span class="nx">instance</span><span class="o">)</span> <span class="o">{</span>
            <span class="nx">instance</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Node</span><span class="o">(</span><span class="nx">node</span><span class="o">,</span> <span class="nx">restrict</span><span class="o">);</span>
        <span class="o">}</span> <span class="k">else</span> <span class="k">if</span> <span class="o">(</span><span class="nx">restrict</span><span class="o">)</span> <span class="o">{</span>
            <span class="nx">g_restrict</span><span class="o">[</span><span class="nx">instance</span><span class="o">[</span><span class="nx">UID</span><span class="o">]]</span> <span class="o">=</span> <span class="kc">true</span><span class="o">;</span>
            <span class="nx">instance</span><span class="o">.</span><span class="nx">_set</span><span class="o">(</span><span class="s1">&#39;restricted&#39;</span><span class="o">,</span> <span class="kc">true</span><span class="o">);</span>
        <span class="o">}</span>
    <span class="o">}</span>
    <span class="c">// TODO: restrict on subsequent call?</span>
<span class="c"></span>    <span class="k">return</span> <span class="nx">instance</span><span class="o">;</span>
<span class="o">};</span>

<span class="c">/**</span>
<span class="c"> * Creates a new dom node using the provided markup string. </span>
<span class="c"> * @method create</span>
<span class="c"> * @static</span>
<span class="c"> * @param {String} html The markup used to create the element</span>
<span class="c"> * @param {HTMLDocument} doc An optional document context </span>
<span class="c"> */</span>
<span class="nx">Node</span><span class="o">.</span><span class="nx">create</span> <span class="o">=</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
    <span class="k">return</span> <span class="nx">Node</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">DOM</span><span class="o">.</span><span class="nx">create</span><span class="o">.</span><span class="nx">apply</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">DOM</span><span class="o">,</span> <span class="nx">arguments</span><span class="o">));</span>
<span class="o">};</span>

<span class="nx">Node</span><span class="o">.</span><span class="nx">ATTRS</span> <span class="o">=</span> <span class="o">{</span>
    <span class="c">/**</span>
<span class="c">     * Allows for getting and setting the text of an element.</span>
<span class="c">     * Formatting is preserved and special characters are treated literally.</span>
<span class="c">     * @config text</span>
<span class="c">     * @type String</span>
<span class="c">     */</span>
    <span class="nx">text</span><span class="o">:</span> <span class="o">{</span>
        <span class="nx">getter</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">return</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">DOM</span><span class="o">.</span><span class="nx">getText</span><span class="o">(</span><span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]]);</span>
        <span class="o">},</span>

        <span class="nx">setter</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">content</span><span class="o">)</span> <span class="o">{</span>
            <span class="nx">Y</span><span class="o">.</span><span class="nx">DOM</span><span class="o">.</span><span class="nx">setText</span><span class="o">(</span><span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]],</span> <span class="nx">content</span><span class="o">);</span>
            <span class="k">return</span> <span class="nx">content</span><span class="o">;</span>
        <span class="o">}</span>
    <span class="o">},</span>

    <span class="s1">&#39;options&#39;</span><span class="o">:</span> <span class="o">{</span>
        <span class="nx">getter</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">return</span> <span class="k">this</span><span class="o">.</span><span class="nx">getElementsByTagName</span><span class="o">(</span><span class="s1">&#39;option&#39;</span><span class="o">);</span>
        <span class="o">}</span>
    <span class="o">},</span>

    <span class="c">/**</span>
<span class="c">     * Returns a NodeList instance of all HTMLElement children.</span>
<span class="c">     * @readOnly</span>
<span class="c">     * @config children</span>
<span class="c">     * @type NodeList</span>
<span class="c">     */</span>
    <span class="s1">&#39;children&#39;</span><span class="o">:</span> <span class="o">{</span>
        <span class="nx">getter</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">node</span> <span class="o">=</span> <span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]],</span>
                <span class="nx">children</span> <span class="o">=</span> <span class="nx">node</span><span class="o">.</span><span class="nx">children</span><span class="o">,</span>
                <span class="nx">childNodes</span><span class="o">,</span> <span class="nx">i</span><span class="o">,</span> <span class="nx">len</span><span class="o">;</span>

            <span class="k">if</span> <span class="o">(</span><span class="nx">children</span> <span class="o">===</span> <span class="kc">undefined</span><span class="o">)</span> <span class="o">{</span>
                <span class="nx">childNodes</span> <span class="o">=</span> <span class="nx">node</span><span class="o">.</span><span class="nx">childNodes</span><span class="o">;</span>
                <span class="nx">children</span> <span class="o">=</span> <span class="o">[];</span>

                <span class="k">for</span> <span class="o">(</span><span class="nx">i</span> <span class="o">=</span> <span class="m">0</span><span class="o">,</span> <span class="nx">len</span> <span class="o">=</span> <span class="nx">childNodes</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">len</span><span class="o">;</span> <span class="o">++</span><span class="nx">i</span><span class="o">)</span> <span class="o">{</span>
                    <span class="k">if</span> <span class="o">(</span><span class="nx">childNodes</span><span class="o">[</span><span class="nx">i</span><span class="o">][</span><span class="nx">TAG_NAME</span><span class="o">])</span> <span class="o">{</span>
                        <span class="nx">children</span><span class="o">[</span><span class="nx">children</span><span class="o">.</span><span class="nx">length</span><span class="o">]</span> <span class="o">=</span> <span class="nx">childNodes</span><span class="o">[</span><span class="nx">i</span><span class="o">];</span>
                    <span class="o">}</span>
                <span class="o">}</span>
            <span class="o">}</span>
            <span class="k">return</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">all</span><span class="o">(</span><span class="nx">children</span><span class="o">);</span>
        <span class="o">}</span>
    <span class="o">},</span>

    <span class="nx">value</span><span class="o">:</span> <span class="o">{</span>
        <span class="nx">getter</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">return</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">DOM</span><span class="o">.</span><span class="nx">getValue</span><span class="o">(</span><span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]]);</span>
        <span class="o">},</span>

        <span class="nx">setter</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">val</span><span class="o">)</span> <span class="o">{</span>
            <span class="nx">Y</span><span class="o">.</span><span class="nx">DOM</span><span class="o">.</span><span class="nx">setValue</span><span class="o">(</span><span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]],</span> <span class="nx">val</span><span class="o">);</span>
            <span class="k">return</span> <span class="nx">val</span><span class="o">;</span>
        <span class="o">}</span>
    <span class="o">},</span>

<span class="c">/*</span>
<span class="c">    style: {</span>
<span class="c">        getter: function(attr) {</span>
<span class="c">            return Y.DOM.getStyle(g_nodes[this[UID]].style, attr);</span>
<span class="c">        }</span>
<span class="c">    },</span>
<span class="c">*/</span>

    <span class="c">/**</span>
<span class="c">     * Whether or not this Node can traverse outside of its subtree.</span>
<span class="c">     * @config restricted</span>
<span class="c">     * @writeOnce</span>
<span class="c">     * @type Boolean</span>
<span class="c">     */</span>
    <span class="nx">restricted</span><span class="o">:</span> <span class="o">{</span>
        <span class="nx">writeOnce</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
        <span class="nx">value</span><span class="o">:</span> <span class="kc">false</span>
    <span class="o">}</span>
<span class="o">};</span>

<span class="c">// call with instance context</span>
<span class="c"></span><span class="nx">Node</span><span class="o">.</span><span class="nx">DEFAULT_SETTER</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">name</span><span class="o">,</span> <span class="nx">val</span><span class="o">)</span> <span class="o">{</span>
    <span class="k">var</span> <span class="nx">node</span> <span class="o">=</span> <span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]],</span>
        <span class="nx">strPath</span><span class="o">;</span>

    <span class="k">if</span> <span class="o">(</span><span class="nx">name</span><span class="o">.</span><span class="nx">indexOf</span><span class="o">(</span><span class="nx">DOT</span><span class="o">)</span> <span class="o">&gt;</span> <span class="o">-</span><span class="m">1</span><span class="o">)</span> <span class="o">{</span>
        <span class="nx">strPath</span> <span class="o">=</span> <span class="nx">name</span><span class="o">;</span>
        <span class="nx">name</span> <span class="o">=</span> <span class="nx">name</span><span class="o">.</span><span class="nx">split</span><span class="o">(</span><span class="nx">DOT</span><span class="o">);</span>
        <span class="nx">Y</span><span class="o">.</span><span class="nb">Object</span><span class="o">.</span><span class="nx">setValue</span><span class="o">(</span><span class="nx">node</span><span class="o">,</span> <span class="nx">name</span><span class="o">,</span> <span class="nx">val</span><span class="o">);</span>
    <span class="o">}</span> <span class="k">else</span> <span class="k">if</span> <span class="o">(</span><span class="nx">node</span><span class="o">[</span><span class="nx">name</span><span class="o">]</span> <span class="o">!==</span> <span class="kc">undefined</span><span class="o">)</span> <span class="o">{</span> <span class="c">// only set DOM attributes</span>
<span class="c"></span>        <span class="nx">node</span><span class="o">[</span><span class="nx">name</span><span class="o">]</span> <span class="o">=</span> <span class="nx">val</span><span class="o">;</span>
    <span class="o">}</span>

    <span class="k">return</span> <span class="nx">val</span><span class="o">;</span>
<span class="o">};</span>

<span class="c">// call with instance context</span>
<span class="c"></span><span class="nx">Node</span><span class="o">.</span><span class="nx">DEFAULT_GETTER</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">name</span><span class="o">)</span> <span class="o">{</span>
    <span class="k">var</span> <span class="nx">node</span> <span class="o">=</span> <span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]],</span>
        <span class="nx">val</span><span class="o">;</span>

    <span class="k">if</span> <span class="o">(</span><span class="nx">name</span><span class="o">.</span><span class="nx">indexOf</span> <span class="o">&amp;&amp;</span> <span class="nx">name</span><span class="o">.</span><span class="nx">indexOf</span><span class="o">(</span><span class="nx">DOT</span><span class="o">)</span> <span class="o">&gt;</span> <span class="o">-</span><span class="m">1</span><span class="o">)</span> <span class="o">{</span>
        <span class="nx">val</span> <span class="o">=</span> <span class="nx">Y</span><span class="o">.</span><span class="nb">Object</span><span class="o">.</span><span class="nx">getValue</span><span class="o">(</span><span class="nx">node</span><span class="o">,</span> <span class="nx">name</span><span class="o">.</span><span class="nx">split</span><span class="o">(</span><span class="nx">DOT</span><span class="o">));</span>
    <span class="o">}</span> <span class="k">else</span> <span class="o">{</span>
        <span class="nx">val</span> <span class="o">=</span> <span class="nx">node</span><span class="o">[</span><span class="nx">name</span><span class="o">];</span>
    <span class="o">}</span>

    <span class="k">return</span> <span class="nx">val</span> <span class="o">?</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Node</span><span class="o">.</span><span class="nx">scrubVal</span><span class="o">(</span><span class="nx">val</span><span class="o">,</span> <span class="k">this</span><span class="o">)</span> <span class="o">:</span> <span class="nx">val</span><span class="o">;</span>
<span class="o">};</span>

<span class="nx">Y</span><span class="o">.</span><span class="nx">extend</span><span class="o">(</span><span class="nx">Node</span><span class="o">,</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Base</span><span class="o">);</span>

<span class="nx">Y</span><span class="o">.</span><span class="nx">mix</span><span class="o">(</span><span class="nx">Node</span><span class="o">.</span><span class="nx">prototype</span><span class="o">,</span> <span class="o">{</span>
    <span class="nx">toString</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
        <span class="k">var</span> <span class="nx">str</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="o">,</span>
            <span class="nx">errorMsg</span> <span class="o">=</span> <span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]</span> <span class="o">+</span> <span class="s1">&#39;: not bound to a node&#39;</span><span class="o">,</span>
            <span class="nx">node</span> <span class="o">=</span> <span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]];</span>

        <span class="k">if</span> <span class="o">(</span><span class="nx">node</span><span class="o">)</span> <span class="o">{</span>
            <span class="nx">str</span> <span class="o">+=</span> <span class="nx">node</span><span class="o">[</span><span class="nx">NODE_NAME</span><span class="o">];</span>
            <span class="k">if</span> <span class="o">(</span><span class="nx">node</span><span class="o">.</span><span class="nx">id</span><span class="o">)</span> <span class="o">{</span>
                <span class="nx">str</span> <span class="o">+=</span> <span class="s1">&#39;#&#39;</span> <span class="o">+</span> <span class="nx">node</span><span class="o">.</span><span class="nx">id</span><span class="o">;</span> 
            <span class="o">}</span>

            <span class="k">if</span> <span class="o">(</span><span class="nx">node</span><span class="o">.</span><span class="nx">className</span><span class="o">)</span> <span class="o">{</span>
                <span class="nx">str</span> <span class="o">+=</span> <span class="s1">&#39;.&#39;</span> <span class="o">+</span> <span class="nx">node</span><span class="o">.</span><span class="nx">className</span><span class="o">.</span><span class="nx">replace</span><span class="o">(</span><span class="s1">&#39; &#39;</span><span class="o">,</span> <span class="s1">&#39;.&#39;</span><span class="o">);</span> 
            <span class="o">}</span>

            <span class="c">// TODO: add yuid?</span>
<span class="c"></span>            <span class="nx">str</span> <span class="o">+=</span> <span class="s1">&#39; &#39;</span> <span class="o">+</span> <span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">];</span>
        <span class="o">}</span>
        <span class="k">return</span> <span class="nx">str</span> <span class="o">||</span> <span class="nx">errorMsg</span><span class="o">;</span>
    <span class="o">},</span>

    <span class="nx">_addDOMAttr</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">attr</span><span class="o">)</span> <span class="o">{</span>
        <span class="k">var</span> <span class="nx">domNode</span> <span class="o">=</span> <span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]];</span>

        <span class="k">if</span> <span class="o">(</span><span class="nx">domNode</span> <span class="o">&amp;&amp;</span> <span class="nx">domNode</span><span class="o">[</span><span class="nx">attr</span><span class="o">]</span> <span class="o">!==</span> <span class="kc">undefined</span><span class="o">)</span> <span class="o">{</span>
            <span class="k">this</span><span class="o">.</span><span class="nx">addAttr</span><span class="o">(</span><span class="nx">attr</span><span class="o">,</span> <span class="o">{</span>
                <span class="nx">getter</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
                    <span class="k">return</span> <span class="nx">Node</span><span class="o">.</span><span class="nx">DEFAULT_GETTER</span><span class="o">.</span><span class="nx">call</span><span class="o">(</span><span class="k">this</span><span class="o">,</span> <span class="nx">attr</span><span class="o">);</span>
                <span class="o">},</span>

                <span class="nx">setter</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">val</span><span class="o">)</span> <span class="o">{</span>
                    <span class="k">return</span> <span class="nx">Node</span><span class="o">.</span><span class="nx">DEFAULT_SETTER</span><span class="o">.</span><span class="nx">call</span><span class="o">(</span><span class="k">this</span><span class="o">,</span> <span class="nx">attr</span><span class="o">,</span> <span class="nx">val</span><span class="o">);</span>
                <span class="o">}</span>
            <span class="o">});</span>
        <span class="o">}</span> <span class="k">else</span> <span class="o">{</span>
            <span class="nx">Y</span><span class="o">.</span><span class="nx">log</span><span class="o">(</span><span class="s1">&#39;unable to add DOM attribute: &#39;</span> <span class="o">+</span> <span class="nx">attr</span> <span class="o">+</span> <span class="s1">&#39; to node: &#39;</span> <span class="o">+</span> <span class="k">this</span><span class="o">,</span> <span class="s1">&#39;warn&#39;</span><span class="o">,</span> <span class="s1">&#39;Node&#39;</span><span class="o">);</span>
        <span class="o">}</span>
    <span class="o">},</span>

    <span class="nx">get</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">attr</span><span class="o">)</span> <span class="o">{</span>
        <span class="k">if</span> <span class="o">(!</span><span class="k">this</span><span class="o">.</span><span class="nx">attrAdded</span><span class="o">(</span><span class="nx">attr</span><span class="o">))</span> <span class="o">{</span> <span class="c">// use DEFAULT_GETTER for unconfigured attrs</span>
<span class="c"></span>            <span class="k">if</span> <span class="o">(</span><span class="nx">Node</span><span class="o">.</span><span class="nx">re_aria</span> <span class="o">&amp;&amp;</span> <span class="nx">Node</span><span class="o">.</span><span class="nx">re_aria</span><span class="o">.</span><span class="nx">test</span><span class="o">(</span><span class="nx">attr</span><span class="o">))</span> <span class="o">{</span> <span class="c">// except for aria</span>
<span class="c"></span>                <span class="k">this</span><span class="o">.</span><span class="nx">_addAriaAttr</span><span class="o">(</span><span class="nx">attr</span><span class="o">);</span>
            <span class="o">}</span> <span class="k">else</span> <span class="o">{</span>
                <span class="k">return</span> <span class="nx">Node</span><span class="o">.</span><span class="nx">DEFAULT_GETTER</span><span class="o">.</span><span class="nx">apply</span><span class="o">(</span><span class="k">this</span><span class="o">,</span> <span class="nx">arguments</span><span class="o">);</span>
            <span class="o">}</span>
        <span class="o">}</span>

        <span class="k">return</span> <span class="nx">SuperConstrProto</span><span class="o">.</span><span class="nx">get</span><span class="o">.</span><span class="nx">apply</span><span class="o">(</span><span class="k">this</span><span class="o">,</span> <span class="nx">arguments</span><span class="o">);</span>
    <span class="o">},</span>

    <span class="nx">set</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">attr</span><span class="o">,</span> <span class="nx">val</span><span class="o">)</span> <span class="o">{</span>
        <span class="k">if</span> <span class="o">(!</span><span class="k">this</span><span class="o">.</span><span class="nx">attrAdded</span><span class="o">(</span><span class="nx">attr</span><span class="o">))</span> <span class="o">{</span> <span class="c">// use DEFAULT_SETTER for unconfigured attrs</span>
<span class="c"></span>            <span class="c">// except for aria</span>
<span class="c"></span>            <span class="k">if</span> <span class="o">(</span><span class="nx">Node</span><span class="o">.</span><span class="nx">re_aria</span> <span class="o">&amp;&amp;</span> <span class="nx">Node</span><span class="o">.</span><span class="nx">re_aria</span><span class="o">.</span><span class="nx">test</span><span class="o">(</span><span class="nx">attr</span><span class="o">))</span> <span class="o">{</span>
                <span class="k">this</span><span class="o">.</span><span class="nx">_addAriaAttr</span><span class="o">(</span><span class="nx">attr</span><span class="o">);</span>
            <span class="c">//  or chained properties or if no change listeners</span>
<span class="c"></span>            <span class="o">}</span> <span class="k">else</span> <span class="k">if</span> <span class="o">(</span><span class="nx">attr</span><span class="o">.</span><span class="nx">indexOf</span><span class="o">(</span><span class="nx">DOT</span><span class="o">)</span> <span class="o">&lt;</span> <span class="m">0</span> <span class="o">&amp;&amp;</span> <span class="k">this</span><span class="o">.</span><span class="nx">_yuievt</span><span class="o">.</span><span class="nx">events</span><span class="o">[</span><span class="s1">&#39;Node:&#39;</span> <span class="o">+</span> <span class="nx">attr</span> <span class="o">+</span> <span class="s1">&#39;Change&#39;</span><span class="o">])</span> <span class="o">{</span>
                <span class="k">this</span><span class="o">.</span><span class="nx">_addDOMAttr</span><span class="o">(</span><span class="nx">attr</span><span class="o">);</span>
            <span class="o">}</span> <span class="k">else</span> <span class="o">{</span>
                <span class="nx">Node</span><span class="o">.</span><span class="nx">DEFAULT_SETTER</span><span class="o">.</span><span class="nx">call</span><span class="o">(</span><span class="k">this</span><span class="o">,</span> <span class="nx">attr</span><span class="o">,</span> <span class="nx">val</span><span class="o">);</span>
                <span class="k">return</span> <span class="k">this</span><span class="o">;</span> <span class="c">// NOTE: return</span>
<span class="c"></span>            <span class="o">}</span>
        <span class="o">}</span>
        <span class="nx">SuperConstrProto</span><span class="o">.</span><span class="nx">set</span><span class="o">.</span><span class="nx">apply</span><span class="o">(</span><span class="k">this</span><span class="o">,</span> <span class="nx">arguments</span><span class="o">);</span>
        <span class="k">return</span> <span class="k">this</span><span class="o">;</span>
    <span class="o">},</span>

    <span class="c">/**</span>
<span class="c">     * Creates a new Node using the provided markup string. </span>
<span class="c">     * @method create</span>
<span class="c">     * @param {String} html The markup used to create the element</span>
<span class="c">     * @param {HTMLDocument} doc An optional document context </span>
<span class="c">     */</span>
    <span class="nx">create</span><span class="o">:</span> <span class="nx">Node</span><span class="o">.</span><span class="nx">create</span><span class="o">,</span>

    <span class="c">/**</span>
<span class="c">     * Compares nodes to determine if they match.</span>
<span class="c">     * Node instances can be compared to each other and/or HTMLElements.</span>
<span class="c">     * @method compareTo</span>
<span class="c">     * @param {HTMLElement | Node} refNode The reference node to compare to the node.</span>
<span class="c">     * @return {Boolean} True if the nodes match, false if they do not. </span>
<span class="c">     */</span>
    <span class="nx">compareTo</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">refNode</span><span class="o">)</span> <span class="o">{</span>
        <span class="k">var</span> <span class="nx">node</span> <span class="o">=</span> <span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]];</span>
        <span class="k">if</span> <span class="o">(</span><span class="nx">refNode</span> <span class="k">instanceof</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Node</span><span class="o">)</span> <span class="o">{</span> 
            <span class="nx">refNode</span> <span class="o">=</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Node</span><span class="o">.</span><span class="nx">getDOMNode</span><span class="o">(</span><span class="nx">refNode</span><span class="o">);</span>
        <span class="o">}</span>
        <span class="k">return</span> <span class="nx">node</span> <span class="o">===</span> <span class="nx">refNode</span><span class="o">;</span>
    <span class="o">},</span>

    <span class="c">/**</span>
<span class="c">     * Determines whether the node is appended to the document.</span>
<span class="c">     * @method inDoc</span>
<span class="c">     * @param {Node|HTMLElement} doc optional An optional document to check against.</span>
<span class="c">     * Defaults to current document. </span>
<span class="c">     * @return {Boolean} Whether or not this node is appended to the document. </span>
<span class="c">     */</span>
    <span class="nx">inDoc</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">doc</span><span class="o">)</span> <span class="o">{</span>
        <span class="k">var</span> <span class="nx">node</span> <span class="o">=</span> <span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]];</span>
        <span class="nx">doc</span> <span class="o">=</span> <span class="o">(</span><span class="nx">doc</span><span class="o">)</span> <span class="o">?</span> <span class="nx">Node</span><span class="o">.</span><span class="nx">getDOMNode</span><span class="o">(</span><span class="nx">doc</span><span class="o">)</span> <span class="o">:</span> <span class="nx">node</span><span class="o">[</span><span class="nx">OWNER_DOCUMENT</span><span class="o">];</span>
        <span class="k">if</span> <span class="o">(</span><span class="nx">doc</span><span class="o">.</span><span class="nx">documentElement</span><span class="o">)</span> <span class="o">{</span>
            <span class="k">return</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">DOM</span><span class="o">.</span><span class="nx">contains</span><span class="o">(</span><span class="nx">doc</span><span class="o">.</span><span class="nx">documentElement</span><span class="o">,</span> <span class="nx">node</span><span class="o">);</span>
        <span class="o">}</span>
    <span class="o">},</span>

    <span class="nx">getById</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">id</span><span class="o">)</span> <span class="o">{</span>
        <span class="k">var</span> <span class="nx">node</span> <span class="o">=</span> <span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]],</span>
            <span class="nx">ret</span> <span class="o">=</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">DOM</span><span class="o">.</span><span class="nx">byId</span><span class="o">(</span><span class="nx">id</span><span class="o">,</span> <span class="nx">node</span><span class="o">[</span><span class="nx">OWNER_DOCUMENT</span><span class="o">]);</span>
        <span class="k">if</span> <span class="o">(</span><span class="nx">ret</span> <span class="o">&amp;&amp;</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">DOM</span><span class="o">.</span><span class="nx">contains</span><span class="o">(</span><span class="nx">node</span><span class="o">,</span> <span class="nx">ret</span><span class="o">))</span> <span class="o">{</span>
            <span class="nx">ret</span> <span class="o">=</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="nx">ret</span><span class="o">);</span>
        <span class="o">}</span> <span class="k">else</span> <span class="o">{</span>
            <span class="nx">ret</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
        <span class="o">}</span>
        <span class="k">return</span> <span class="nx">ret</span><span class="o">;</span>
    <span class="o">},</span>

   <span class="c">/**</span>
<span class="c">     * Returns the nearest ancestor that passes the test applied by supplied boolean method.</span>
<span class="c">     * @method ancestor</span>
<span class="c">     * @param {String | Function} fn A selector or boolean method for testing elements.</span>
<span class="c">     * If a function is used, it receives the current node being tested as the only argument.</span>
<span class="c">     * @return {Node} The matching Node instance or null if not found</span>
<span class="c">     */</span>
    <span class="nx">ancestor</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">fn</span><span class="o">)</span> <span class="o">{</span>
        <span class="k">return</span> <span class="nx">Node</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">DOM</span><span class="o">.</span><span class="nx">elementByAxis</span><span class="o">(</span><span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]],</span> <span class="s1">&#39;parentNode&#39;</span><span class="o">,</span> <span class="nx">_wrapFn</span><span class="o">(</span><span class="nx">fn</span><span class="o">)));</span>
    <span class="o">},</span>

    <span class="c">/**</span>
<span class="c">     * Returns the previous matching sibling. </span>
<span class="c">     * Returns the nearest element node sibling if no method provided.</span>
<span class="c">     * @method previous</span>
<span class="c">     * @param {String | Function} fn A selector or boolean method for testing elements.</span>
<span class="c">     * If a function is used, it receives the current node being tested as the only argument.</span>
<span class="c">     * @return {Node} Node instance or null if not found</span>
<span class="c">     */</span>
    <span class="nx">previous</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">fn</span><span class="o">,</span> <span class="nx">all</span><span class="o">)</span> <span class="o">{</span>
        <span class="k">return</span> <span class="nx">Node</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">DOM</span><span class="o">.</span><span class="nx">elementByAxis</span><span class="o">(</span><span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]],</span> <span class="s1">&#39;previousSibling&#39;</span><span class="o">,</span> <span class="nx">_wrapFn</span><span class="o">(</span><span class="nx">fn</span><span class="o">),</span> <span class="nx">all</span><span class="o">));</span>
    <span class="o">},</span> 

    <span class="c">/**</span>
<span class="c">     * Returns the next matching sibling. </span>
<span class="c">     * Returns the nearest element node sibling if no method provided.</span>
<span class="c">     * @method next</span>
<span class="c">     * @param {String | Function} fn A selector or boolean method for testing elements.</span>
<span class="c">     * If a function is used, it receives the current node being tested as the only argument.</span>
<span class="c">     * @return {Node} Node instance or null if not found</span>
<span class="c">     */</span>
    <span class="nx">next</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">node</span><span class="o">,</span> <span class="nx">fn</span><span class="o">,</span> <span class="nx">all</span><span class="o">)</span> <span class="o">{</span>
        <span class="k">return</span> <span class="nx">Node</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">DOM</span><span class="o">.</span><span class="nx">elementByAxis</span><span class="o">(</span><span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]],</span> <span class="s1">&#39;nextSibling&#39;</span><span class="o">,</span> <span class="nx">_wrapFn</span><span class="o">(</span><span class="nx">fn</span><span class="o">),</span> <span class="nx">all</span><span class="o">));</span>
    <span class="o">},</span>
        
    <span class="c">/**</span>
<span class="c">     * Retrieves a Node instance of nodes based on the given CSS selector. </span>
<span class="c">     * @method query</span>
<span class="c">     *</span>
<span class="c">     * @param {string} selector The CSS selector to test against.</span>
<span class="c">     * @return {Node} A Node instance for the matching HTMLElement.</span>
<span class="c">     */</span>
    <span class="nx">query</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">selector</span><span class="o">)</span> <span class="o">{</span>
        <span class="k">return</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">Selector</span><span class="o">.</span><span class="nx">query</span><span class="o">(</span><span class="nx">selector</span><span class="o">,</span> <span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]],</span> <span class="kc">true</span><span class="o">));</span>
    <span class="o">},</span>

    <span class="c">/**</span>
<span class="c">     * Retrieves a nodeList based on the given CSS selector. </span>
<span class="c">     * @method queryAll</span>
<span class="c">     *</span>
<span class="c">     * @param {string} selector The CSS selector to test against.</span>
<span class="c">     * @return {NodeList} A NodeList instance for the matching HTMLCollection/Array.</span>
<span class="c">     */</span>
    <span class="nx">queryAll</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">selector</span><span class="o">)</span> <span class="o">{</span>
        <span class="k">return</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">all</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">Selector</span><span class="o">.</span><span class="nx">query</span><span class="o">(</span><span class="nx">selector</span><span class="o">,</span> <span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]]));</span>
    <span class="o">},</span>

    <span class="c">// TODO: allow fn test</span>
<span class="c"></span>    <span class="c">/**</span>
<span class="c">     * Test if the supplied node matches the supplied selector.</span>
<span class="c">     * @method test</span>
<span class="c">     *</span>
<span class="c">     * @param {string} selector The CSS selector to test against.</span>
<span class="c">     * @return {boolean} Whether or not the node matches the selector.</span>
<span class="c">     */</span>
    <span class="nx">test</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">selector</span><span class="o">)</span> <span class="o">{</span>
        <span class="k">return</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Selector</span><span class="o">.</span><span class="nx">test</span><span class="o">(</span><span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]],</span> <span class="nx">selector</span><span class="o">);</span>
    <span class="o">},</span>

    <span class="c">/**</span>
<span class="c">     * Removes the node from its parent.</span>
<span class="c">     * Shortcut for myNode.get(&#39;parentNode&#39;).removeChild(myNode);</span>
<span class="c">     * @method remove</span>
<span class="c">     * @chainable</span>
<span class="c">     *</span>
<span class="c">     */</span>
    <span class="nx">remove</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
        <span class="k">var</span> <span class="nx">node</span> <span class="o">=</span> <span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]];</span>
        <span class="nx">node</span><span class="o">.</span><span class="nx">parentNode</span><span class="o">.</span><span class="nx">removeChild</span><span class="o">(</span><span class="nx">node</span><span class="o">);</span>
        <span class="k">return</span> <span class="k">this</span><span class="o">;</span>
    <span class="o">},</span>

    <span class="c">/**</span>
<span class="c">     * Invokes a method on the Node instance </span>
<span class="c">     * @method invoke</span>
<span class="c">     * @param {String} method The name of the method to invoke</span>
<span class="c">     * @param {Any}  a, b, c, etc. Arguments to invoke the method with. </span>
<span class="c">     * @return Whatever the underly method returns. </span>
<span class="c">     * DOM Nodes and Collections return values</span>
<span class="c">     * are converted to Node/NodeList instances.</span>
<span class="c">     *</span>
<span class="c">     */</span>
    <span class="nx">invoke</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">method</span><span class="o">,</span> <span class="nx">a</span><span class="o">,</span> <span class="nx">b</span><span class="o">,</span> <span class="nx">c</span><span class="o">,</span> <span class="nx">d</span><span class="o">,</span> <span class="nx">e</span><span class="o">)</span> <span class="o">{</span>
        <span class="k">var</span> <span class="nx">node</span> <span class="o">=</span> <span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]],</span>
            <span class="nx">ret</span><span class="o">;</span>

        <span class="k">if</span> <span class="o">(</span><span class="nx">a</span> <span class="o">&amp;&amp;</span> <span class="nx">a</span> <span class="k">instanceof</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Node</span><span class="o">)</span> <span class="o">{</span>
            <span class="nx">a</span> <span class="o">=</span> <span class="nx">Node</span><span class="o">.</span><span class="nx">getDOMNode</span><span class="o">(</span><span class="nx">a</span><span class="o">);</span>
        <span class="o">}</span>

        <span class="k">if</span> <span class="o">(</span><span class="nx">b</span> <span class="o">&amp;&amp;</span> <span class="nx">b</span> <span class="k">instanceof</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Node</span><span class="o">)</span> <span class="o">{</span>
            <span class="nx">b</span> <span class="o">=</span> <span class="nx">Node</span><span class="o">.</span><span class="nx">getDOMNode</span><span class="o">(</span><span class="nx">b</span><span class="o">);</span>
        <span class="o">}</span>

        <span class="nx">ret</span> <span class="o">=</span> <span class="nx">node</span><span class="o">[</span><span class="nx">method</span><span class="o">](</span><span class="nx">a</span><span class="o">,</span> <span class="nx">b</span><span class="o">,</span> <span class="nx">c</span><span class="o">,</span> <span class="nx">d</span><span class="o">,</span> <span class="nx">e</span><span class="o">);</span>    
        <span class="k">return</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Node</span><span class="o">.</span><span class="nx">scrubVal</span><span class="o">(</span><span class="nx">ret</span><span class="o">,</span> <span class="k">this</span><span class="o">);</span>
    <span class="o">},</span>

    <span class="nx">destructor</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
        <span class="c">// TODO: What about shared instances?</span>
<span class="c"></span>        <span class="c">//var uid = this[UID];</span>
<span class="c"></span>
        <span class="c">//delete g_nodes[uid];</span>
<span class="c"></span>        <span class="c">//delete g_restrict[uid];</span>
<span class="c"></span>        <span class="c">//delete Node._instances[uid];</span>
<span class="c"></span>    <span class="o">},</span>

    <span class="c">/**</span>
<span class="c">     * Applies the given function to each Node in the NodeList.</span>
<span class="c">     * @method each</span>
<span class="c">     * @deprecated Use NodeList</span>
<span class="c">     * @param {Function} fn The function to apply </span>
<span class="c">     * @param {Object} context optional An optional context to apply the function with</span>
<span class="c">     * Default context is the NodeList instance</span>
<span class="c">     * @chainable</span>
<span class="c">     */</span>
    <span class="nx">each</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">fn</span><span class="o">,</span> <span class="nx">context</span><span class="o">)</span> <span class="o">{</span>
        <span class="nx">context</span> <span class="o">=</span> <span class="nx">context</span> <span class="o">||</span> <span class="k">this</span><span class="o">;</span>
        <span class="nx">Y</span><span class="o">.</span><span class="nx">log</span><span class="o">(</span><span class="s1">&#39;each is deprecated on Node&#39;</span><span class="o">,</span> <span class="s1">&#39;warn&#39;</span><span class="o">,</span> <span class="s1">&#39;Node&#39;</span><span class="o">);</span>
        <span class="k">return</span> <span class="nx">fn</span><span class="o">.</span><span class="nx">call</span><span class="o">(</span><span class="nx">context</span><span class="o">,</span> <span class="k">this</span><span class="o">);</span>
    <span class="o">},</span>

    <span class="c">/**</span>
<span class="c">     * Retrieves the Node instance at the given index. </span>
<span class="c">     * @method item</span>
<span class="c">     * @deprecated Use NodeList</span>
<span class="c">     *</span>
<span class="c">     * @param {Number} index The index of the target Node.</span>
<span class="c">     * @return {Node} The Node instance at the given index.</span>
<span class="c">     */</span>
    <span class="nx">item</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">index</span><span class="o">)</span> <span class="o">{</span>
        <span class="nx">Y</span><span class="o">.</span><span class="nx">log</span><span class="o">(</span><span class="s1">&#39;item is deprecated on Node&#39;</span><span class="o">,</span> <span class="s1">&#39;warn&#39;</span><span class="o">,</span> <span class="s1">&#39;Node&#39;</span><span class="o">);</span>
        <span class="k">return</span> <span class="k">this</span><span class="o">;</span>
    <span class="o">},</span>

    <span class="c">/**</span>
<span class="c">     * Returns the current number of items in the Node.</span>
<span class="c">     * @method size</span>
<span class="c">     * @deprecated Use NodeList</span>
<span class="c">     * @return {Int} The number of items in the Node. </span>
<span class="c">     */</span>
    <span class="nx">size</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
        <span class="nx">Y</span><span class="o">.</span><span class="nx">log</span><span class="o">(</span><span class="s1">&#39;size is deprecated on Node&#39;</span><span class="o">,</span> <span class="s1">&#39;warn&#39;</span><span class="o">,</span> <span class="s1">&#39;Node&#39;</span><span class="o">);</span>
        <span class="k">return</span> <span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]]</span> <span class="o">?</span> <span class="m">1</span> <span class="o">:</span> <span class="m">0</span><span class="o">;</span>
    <span class="o">},</span>

    <span class="c">/**</span>
<span class="c">     * Inserts the content before the reference node. </span>
<span class="c">     * @method insert</span>
<span class="c">     * @param {String | Y.Node | HTMLElement} content The content to insert </span>
<span class="c">     * @param {Int | Y.Node | HTMLElement | String} where The position to insert at.</span>
<span class="c">     * @chainable</span>
<span class="c">     */</span>
    <span class="nx">insert</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">content</span><span class="o">,</span> <span class="nx">where</span><span class="o">)</span> <span class="o">{</span>
        <span class="k">if</span> <span class="o">(</span><span class="nx">content</span><span class="o">)</span> <span class="o">{</span>
            <span class="k">if</span> <span class="o">(</span><span class="k">typeof</span> <span class="nx">where</span> <span class="o">===</span> <span class="s1">&#39;number&#39;</span><span class="o">)</span> <span class="o">{</span> <span class="c">// allow index</span>
<span class="c"></span>                <span class="nx">where</span> <span class="o">=</span> <span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]].</span><span class="nx">childNodes</span><span class="o">[</span><span class="nx">where</span><span class="o">];</span>
            <span class="o">}</span>
            <span class="k">if</span> <span class="o">(</span><span class="k">typeof</span> <span class="nx">content</span> <span class="o">!==</span> <span class="s1">&#39;string&#39;</span><span class="o">)</span> <span class="o">{</span> <span class="c">// pass the DOM node</span>
<span class="c"></span>                <span class="nx">content</span> <span class="o">=</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Node</span><span class="o">.</span><span class="nx">getDOMNode</span><span class="o">(</span><span class="nx">content</span><span class="o">);</span>
            <span class="o">}</span>
            <span class="k">if</span> <span class="o">(!</span><span class="nx">where</span> <span class="o">||</span> <span class="c">// only allow inserting into this Node&#39;s subtree</span>
<span class="c"></span>                <span class="o">(!</span><span class="nx">g_restrict</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]]</span> <span class="o">||</span> 
                    <span class="o">(</span><span class="k">typeof</span> <span class="nx">where</span> <span class="o">!==</span> <span class="s1">&#39;string&#39;</span> <span class="o">&amp;&amp;</span> <span class="k">this</span><span class="o">.</span><span class="nx">contains</span><span class="o">(</span><span class="nx">where</span><span class="o">))))</span> <span class="o">{</span> 
                <span class="nx">Y</span><span class="o">.</span><span class="nx">DOM</span><span class="o">.</span><span class="nx">addHTML</span><span class="o">(</span><span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]],</span> <span class="nx">content</span><span class="o">,</span> <span class="nx">where</span><span class="o">);</span>
            <span class="o">}</span>
        <span class="o">}</span>
        <span class="k">return</span> <span class="k">this</span><span class="o">;</span>
    <span class="o">},</span>

    <span class="c">/**</span>
<span class="c">     * Inserts the content as the firstChild of the node. </span>
<span class="c">     * @method prepend</span>
<span class="c">     * @param {String | Y.Node | HTMLElement} content The content to insert </span>
<span class="c">     * @chainable</span>
<span class="c">     */</span>
    <span class="nx">prepend</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">content</span><span class="o">)</span> <span class="o">{</span>
        <span class="k">return</span> <span class="k">this</span><span class="o">.</span><span class="nx">insert</span><span class="o">(</span><span class="nx">content</span><span class="o">,</span> <span class="m">0</span><span class="o">);</span>
    <span class="o">},</span>

    <span class="c">/**</span>
<span class="c">     * Inserts the content as the lastChild of the node. </span>
<span class="c">     * @method append</span>
<span class="c">     * @param {String | Y.Node | HTMLElement} content The content to insert </span>
<span class="c">     * @chainable</span>
<span class="c">     */</span>
    <span class="nx">append</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">content</span><span class="o">)</span> <span class="o">{</span>
        <span class="k">return</span> <span class="k">this</span><span class="o">.</span><span class="nx">insert</span><span class="o">(</span><span class="nx">content</span><span class="o">,</span> <span class="kc">null</span><span class="o">);</span>
    <span class="o">},</span>

    <span class="c">/**</span>
<span class="c">     * Replaces the node&#39;s current content with the content.</span>
<span class="c">     * @method setContent</span>
<span class="c">     * @param {String | Y.Node | HTMLElement} content The content to insert </span>
<span class="c">     * @chainable</span>
<span class="c">     */</span>
    <span class="nx">setContent</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">content</span><span class="o">)</span> <span class="o">{</span>
        <span class="nx">Y</span><span class="o">.</span><span class="nx">DOM</span><span class="o">.</span><span class="nx">addHTML</span><span class="o">(</span><span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]],</span> <span class="nx">content</span><span class="o">,</span> <span class="s1">&#39;replace&#39;</span><span class="o">);</span>
        <span class="k">return</span> <span class="k">this</span><span class="o">;</span>
    <span class="o">},</span>

    <span class="c">// TODO: need this?</span>
<span class="c"></span>    <span class="nx">hasMethod</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">method</span><span class="o">)</span> <span class="o">{</span>
        <span class="k">var</span> <span class="nx">node</span> <span class="o">=</span> <span class="nx">g_nodes</span><span class="o">[</span><span class="k">this</span><span class="o">[</span><span class="nx">UID</span><span class="o">]];</span>
        <span class="k">return</span> <span class="o">(</span><span class="nx">node</span> <span class="o">&amp;&amp;</span> <span class="o">(</span><span class="k">typeof</span> <span class="nx">node</span> <span class="o">===</span> <span class="s1">&#39;function&#39;</span><span class="o">));</span>
    <span class="o">}</span>
<span class="o">},</span> <span class="kc">true</span><span class="o">);</span>

<span class="nx">Y</span><span class="o">.</span><span class="nx">Node</span> <span class="o">=</span> <span class="nx">Node</span><span class="o">;</span>
<span class="nx">Y</span><span class="o">.</span><span class="nx">get</span> <span class="o">=</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Node</span><span class="o">.</span><span class="nx">get</span><span class="o">;</span>
</pre></div>
                    </div>
			</div>
		</div>
		<div class="yui-b">
            <div class="nav">

                    <div id="moduleList" class="module">
                        <h4>Modules</h4>
                        <ul class="content">
                                <li class=""><a href="module_anim.html" title="anim">anim</a></li>
                                <li class=""><a href="module_attribute.html" title="attribute">attribute</a></li>
                                <li class=""><a href="module_base.html" title="base">base</a></li>
                                <li class=""><a href="module_cache.html" title="cache">cache</a></li>
                                <li class=""><a href="module_classnamemanager.html" title="classnamemanager">classnamemanager</a></li>
                                <li class=""><a href="module_collection.html" title="collection">collection</a></li>
                                <li class=""><a href="module_console.html" title="console">console</a></li>
                                <li class=""><a href="module_console-filters.html" title="console-filters">console-filters</a></li>
                                <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li>
                                <li class=""><a href="module_dataschema.html" title="dataschema">dataschema</a></li>
                                <li class=""><a href="module_datasource.html" title="datasource">datasource</a></li>
                                <li class=""><a href="module_datatype.html" title="datatype">datatype</a></li>
                                <li class=""><a href="module_dd.html" title="dd">dd</a></li>
                                <li class=""><a href="module_dom.html" title="dom">dom</a></li>
                                <li class=""><a href="module_dump.html" title="dump">dump</a></li>
                                <li class=""><a href="module_event.html" title="event">event</a></li>
                                <li class=""><a href="module_event-custom.html" title="event-custom">event-custom</a></li>
                                <li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li>
                                <li class=""><a href="module_history.html" title="history">history</a></li>
                                <li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li>
                                <li class=""><a href="module_io.html" title="io">io</a></li>
                                <li class=""><a href="module_json.html" title="json">json</a></li>
                                <li class="selected"><a href="module_node.html" title="node">node</a></li>
                                <li class=""><a href="module_node-focusmanager.html" title="node-focusmanager">node-focusmanager</a></li>
                                <li class=""><a href="module_node-menunav.html" title="node-menunav">node-menunav</a></li>
                                <li class=""><a href="module_oop.html" title="oop">oop</a></li>
                                <li class=""><a href="module_overlay.html" title="overlay">overlay</a></li>
                                <li class=""><a href="module_plugin.html" title="plugin">plugin</a></li>
                                <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li>
                                <li class=""><a href="module_queue.html" title="queue">queue</a></li>
                                <li class=""><a href="module_slider.html" title="slider">slider</a></li>
                                <li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li>
                                <li class=""><a href="module_substitute.html" title="substitute">substitute</a></li>
                                <li class=""><a href="module_test.html" title="test">test</a></li>
                                <li class=""><a href="module_widget.html" title="widget">widget</a></li>
                                <li class=""><a href="module_widget-position.html" title="widget-position">widget-position</a></li>
                                <li class=""><a href="module_widget-position-ext.html" title="widget-position-ext">widget-position-ext</a></li>
                                <li class=""><a href="module_widget-stack.html" title="widget-stack">widget-stack</a></li>
                                <li class=""><a href="module_widget-stdmod.html" title="widget-stdmod">widget-stdmod</a></li>
                                <li class=""><a href="module_yui.html" title="yui">yui</a></li>
                        </ul>
                    </div>

                    <div id="classList" class="module">
                        <h4>Classes</h4>
                        <ul class="content">
                                <li class=""><a href="Node.html" title="Node">Node</a></li>
                                <li class=""><a href="NodeList.html" title="NodeList">NodeList</a></li>
                        </ul>
                    </div>

                    <div id="fileList" class="module">
                        <h4>Files</h4>
                        <ul class="content">        
                                <li class=""><a href="node-aria.js.html" title="node-aria.js">node-aria.js</a></li>
                                <li class=""><a href="node-class.js.html" title="node-class.js">node-class.js</a></li>
                                <li class=""><a href="node-event-delegate.js.html" title="node-event-delegate.js">node-event-delegate.js</a></li>
                                <li class=""><a href="node-event-simulate.js.html" title="node-event-simulate.js">node-event-simulate.js</a></li>
                                <li class=""><a href="node-imports.js.html" title="node-imports.js">node-imports.js</a></li>
                                <li class=""><a href="node-region.js.html" title="node-region.js">node-region.js</a></li>
                                <li class=""><a href="node-screen.js.html" title="node-screen.js">node-screen.js</a></li>
                                <li class=""><a href="node-style.js.html" title="node-style.js">node-style.js</a></li>
                                <li class="selected"><a href="node.js.html" title="node.js">node.js</a></li>
                                <li class=""><a href="nodelist.js.html" title="nodelist.js">nodelist.js</a></li>
                        </ul>
                    </div>





            </div>
		</div>
	</div>
	<div id="ft">
        <hr />
        Copyright &copy; 2009 Yahoo! Inc. All rights reserved.
	</div>
</div>
<script type="text/javascript">
    ALL_YUI_PROPS = [{"access": "", "host": "NodeList", "name": "addClass", "url": "NodeList.html#method_addClass", "type": "method"}, {"access": "", "host": "Node", "name": "addClass", "url": "Node.html#method_addClass", "type": "method"}, {"access": "", "host": "NodeList", "name": "after", "url": "NodeList.html#method_after", "type": "method"}, {"access": "", "host": "Node", "name": "ancestor", "url": "Node.html#method_ancestor", "type": "method"}, {"access": "", "host": "NodeList", "name": "append", "url": "NodeList.html#method_append", "type": "method"}, {"access": "", "host": "Node", "name": "append", "url": "Node.html#method_append", "type": "method"}, {"access": "", "host": "Node", "name": "appendChild", "url": "Node.html#method_appendChild", "type": "method"}, {"access": "", "host": "Node", "name": "blur", "url": "Node.html#method_blur", "type": "method"}, {"access": "", "host": "Node", "name": "children", "url": "Node.html#config_children", "type": "config"}, {"access": "", "host": "Node", "name": "cloneNode", "url": "Node.html#method_cloneNode", "type": "method"}, {"access": "", "host": "Node", "name": "compareTo", "url": "Node.html#method_compareTo", "type": "method"}, {"access": "", "host": "Node", "name": "contains", "url": "Node.html#method_contains", "type": "method"}, {"access": "", "host": "Node", "name": "create", "url": "Node.html#method_create", "type": "method"}, {"access": "", "host": "Node", "name": "delegate", "url": "Node.html#method_delegate", "type": "method"}, {"access": "", "host": "NodeList", "name": "detach", "url": "NodeList.html#method_detach", "type": "method"}, {"access": "", "host": "NodeList", "name": "detachAll", "url": "NodeList.html#method_detachAll", "type": "method"}, {"access": "", "host": "Node", "name": "docHeight", "url": "Node.html#config_docHeight", "type": "config"}, {"access": "", "host": "Node", "name": "docScrollX", "url": "Node.html#config_docScrollX", "type": "config"}, {"access": "", "host": "Node", "name": "docScrollY", "url": "Node.html#config_docScrollY", "type": "config"}, {"access": "", "host": "NodeList", "name": "each", "url": "NodeList.html#method_each", "type": "method"}, {"access": "", "host": "Node", "name": "each", "url": "Node.html#method_each", "type": "method"}, {"access": "", "host": "NodeList", "name": "even", "url": "NodeList.html#method_even", "type": "method"}, {"access": "", "host": "NodeList", "name": "filter", "url": "NodeList.html#method_filter", "type": "method"}, {"access": "", "host": "Node", "name": "focus", "url": "Node.html#method_focus", "type": "method"}, {"access": "", "host": "NodeList", "name": "getAttribute", "url": "NodeList.html#method_getAttribute", "type": "method"}, {"access": "", "host": "Node", "name": "getAttribute", "url": "Node.html#method_getAttribute", "type": "method"}, {"access": "", "host": "NodeList", "name": "getComputedStyle", "url": "NodeList.html#method_getComputedStyle", "type": "method"}, {"access": "", "host": "Node", "name": "getComputedStyle", "url": "Node.html#method_getComputedStyle", "type": "method"}, {"access": "", "host": "Node", "name": "getElementsByTagName", "url": "Node.html#method_getElementsByTagName", "type": "method"}, {"access": "", "host": "NodeList", "name": "getStyle", "url": "NodeList.html#method_getStyle", "type": "method"}, {"access": "", "host": "Node", "name": "getStyle", "url": "Node.html#method_getStyle", "type": "method"}, {"access": "", "host": "Node", "name": "getX", "url": "Node.html#method_getX", "type": "method"}, {"access": "", "host": "Node", "name": "getXY", "url": "Node.html#method_getXY", "type": "method"}, {"access": "", "host": "Node", "name": "getY", "url": "Node.html#method_getY", "type": "method"}, {"access": "", "host": "Node", "name": "hasAttribute", "url": "Node.html#method_hasAttribute", "type": "method"}, {"access": "", "host": "Node", "name": "hasChildNodes", "url": "Node.html#method_hasChildNodes", "type": "method"}, {"access": "", "host": "NodeList", "name": "hasClass", "url": "NodeList.html#method_hasClass", "type": "method"}, {"access": "", "host": "Node", "name": "hasClass", "url": "Node.html#method_hasClass", "type": "method"}, {"access": "", "host": "NodeList", "name": "indexOf", "url": "NodeList.html#method_indexOf", "type": "method"}, {"access": "", "host": "Node", "name": "inDoc", "url": "Node.html#method_inDoc", "type": "method"}, {"access": "", "host": "Node", "name": "inRegion", "url": "Node.html#method_inRegion", "type": "method"}, {"access": "", "host": "NodeList", "name": "insert", "url": "NodeList.html#method_insert", "type": "method"}, {"access": "", "host": "Node", "name": "insert", "url": "Node.html#method_insert", "type": "method"}, {"access": "", "host": "Node", "name": "insertBefore", "url": "Node.html#method_insertBefore", "type": "method"}, {"access": "", "host": "Node", "name": "intersect", "url": "Node.html#method_intersect", "type": "method"}, {"access": "", "host": "Node", "name": "invoke", "url": "Node.html#method_invoke", "type": "method"}, {"access": "", "host": "NodeList", "name": "item", "url": "NodeList.html#method_item", "type": "method"}, {"access": "", "host": "Node", "name": "item", "url": "Node.html#method_item", "type": "method"}, {"access": "", "host": "Node", "name": "next", "url": "Node.html#method_next", "type": "method"}, {"access": "", "host": "Node", "name": "Node.getDOMNode", "url": "Node.html#method_Node.getDOMNode", "type": "method"}, {"access": "", "host": "NodeList", "name": "NodeList.getDOMNodes", "url": "NodeList.html#method_NodeList.getDOMNodes", "type": "method"}, {"access": "", "host": "Node", "name": "Node.plug", "url": "Node.html#method_Node.plug", "type": "method"}, {"access": "", "host": "Node", "name": "Node.unplug", "url": "Node.html#method_Node.unplug", "type": "method"}, {"access": "", "host": "NodeList", "name": "odd", "url": "NodeList.html#method_odd", "type": "method"}, {"access": "", "host": "NodeList", "name": "on", "url": "NodeList.html#method_on", "type": "method"}, {"access": "", "host": "NodeList", "name": "plug", "url": "NodeList.html#method_plug", "type": "method"}, {"access": "", "host": "NodeList", "name": "prepend", "url": "NodeList.html#method_prepend", "type": "method"}, {"access": "", "host": "Node", "name": "prepend", "url": "Node.html#method_prepend", "type": "method"}, {"access": "", "host": "Node", "name": "previous", "url": "Node.html#method_previous", "type": "method"}, {"access": "", "host": "Node", "name": "query", "url": "Node.html#method_query", "type": "method"}, {"access": "", "host": "Node", "name": "queryAll", "url": "Node.html#method_queryAll", "type": "method"}, {"access": "", "host": "Node", "name": "region", "url": "Node.html#config_region", "type": "config"}, {"access": "", "host": "NodeList", "name": "remove", "url": "NodeList.html#method_remove", "type": "method"}, {"access": "", "host": "Node", "name": "remove", "url": "Node.html#method_remove", "type": "method"}, {"access": "", "host": "Node", "name": "removeAttribute", "url": "Node.html#method_removeAttribute", "type": "method"}, {"access": "", "host": "Node", "name": "removeChild", "url": "Node.html#method_removeChild", "type": "method"}, {"access": "", "host": "NodeList", "name": "removeClass", "url": "NodeList.html#method_removeClass", "type": "method"}, {"access": "", "host": "Node", "name": "removeClass", "url": "Node.html#method_removeClass", "type": "method"}, {"access": "", "host": "Node", "name": "replaceChild", "url": "Node.html#method_replaceChild", "type": "method"}, {"access": "", "host": "NodeList", "name": "replaceClass", "url": "NodeList.html#method_replaceClass", "type": "method"}, {"access": "", "host": "Node", "name": "replaceClass", "url": "Node.html#method_replaceClass", "type": "method"}, {"access": "", "host": "Node", "name": "reset", "url": "Node.html#method_reset", "type": "method"}, {"access": "", "host": "Node", "name": "restricted", "url": "Node.html#config_restricted", "type": "config"}, {"access": "", "host": "Node", "name": "scrollIntoView", "url": "Node.html#method_scrollIntoView", "type": "method"}, {"access": "", "host": "Node", "name": "select", "url": "Node.html#method_select", "type": "method"}, {"access": "", "host": "NodeList", "name": "set", "url": "NodeList.html#method_set", "type": "method"}, {"access": "", "host": "NodeList", "name": "setAttribute", "url": "NodeList.html#method_setAttribute", "type": "method"}, {"access": "", "host": "Node", "name": "setAttribute", "url": "Node.html#method_setAttribute", "type": "method"}, {"access": "", "host": "NodeList", "name": "setContent", "url": "NodeList.html#method_setContent", "type": "method"}, {"access": "", "host": "Node", "name": "setContent", "url": "Node.html#method_setContent", "type": "method"}, {"access": "", "host": "NodeList", "name": "setStyle", "url": "NodeList.html#method_setStyle", "type": "method"}, {"access": "", "host": "Node", "name": "setStyle", "url": "Node.html#method_setStyle", "type": "method"}, {"access": "", "host": "NodeList", "name": "setStyles", "url": "NodeList.html#method_setStyles", "type": "method"}, {"access": "", "host": "Node", "name": "setStyles", "url": "Node.html#method_setStyles", "type": "method"}, {"access": "", "host": "Node", "name": "setX", "url": "Node.html#method_setX", "type": "method"}, {"access": "", "host": "Node", "name": "setXY", "url": "Node.html#method_setXY", "type": "method"}, {"access": "", "host": "Node", "name": "setY", "url": "Node.html#method_setY", "type": "method"}, {"access": "", "host": "Node", "name": "simulate", "url": "Node.html#method_simulate", "type": "method"}, {"access": "", "host": "NodeList", "name": "size", "url": "NodeList.html#method_size", "type": "method"}, {"access": "", "host": "Node", "name": "size", "url": "Node.html#method_size", "type": "method"}, {"access": "", "host": "NodeList", "name": "some", "url": "NodeList.html#method_some", "type": "method"}, {"access": "", "host": "Node", "name": "submit", "url": "Node.html#method_submit", "type": "method"}, {"access": "", "host": "Node", "name": "test", "url": "Node.html#method_test", "type": "method"}, {"access": "", "host": "Node", "name": "text", "url": "Node.html#config_text", "type": "config"}, {"access": "", "host": "NodeList", "name": "toggleClass", "url": "NodeList.html#method_toggleClass", "type": "method"}, {"access": "", "host": "Node", "name": "toggleClass", "url": "Node.html#method_toggleClass", "type": "method"}, {"access": "", "host": "NodeList", "name": "unplug", "url": "NodeList.html#method_unplug", "type": "method"}, {"access": "", "host": "Node", "name": "viewportRegion", "url": "Node.html#config_viewportRegion", "type": "config"}, {"access": "", "host": "Node", "name": "winHeight", "url": "Node.html#config_winHeight", "type": "config"}, {"access": "", "host": "Node", "name": "winWidth", "url": "Node.html#config_winWidth", "type": "config"}, {"access": "", "host": "Node", "name": "Y.get", "url": "Node.html#method_Y.get", "type": "method"}];
</script>
</body>
</html>
